﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopDistributor")]
    public class Distributor : BaseObject
    {
        //begin
        public Distributor()
        {}
        public Distributor(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _DistributorId;
        public string DistributorId
        {
            get
            {
                return _DistributorId;
            }
            set
            {
                SetPropertyValue("DistributorId", ref _DistributorId, value);
            }
        }
        private string _FullName;
        public string FullName
        {
            get
            {
                return _FullName;
            }
            set
            {
                SetPropertyValue("FullName", ref _FullName, value);
            }
        }
        private string _CategoryId;
        public string CategoryId
        {
            get
            {
                return _CategoryId;
            }
            set
            {
                SetPropertyValue("CategoryId", ref _CategoryId, value);
            }
        }
        private long _Level;
        public long Level
        {
            get
            {
                return _Level;
            }
            set
            {
                SetPropertyValue("Level", ref _Level, value);
            }
        }
        private long _Appraise;
        public long Appraise
        {
            get
            {
                return _Appraise;
            }
            set
            {
                SetPropertyValue("Appraise", ref _Appraise, value);
            }
        }
        private DateTime _Starts;
        public DateTime Starts
        {
            get
            {
                return _Starts;
            }
            set
            {
                SetPropertyValue("Starts", ref _Starts, value);
            }
        }
        private string _UserId;
        public string UserId
        {
            get
            {
                return _UserId;
            }
            set
            {
                SetPropertyValue("UserId", ref _UserId, value);
            }
        }
        private DateTime _Created;
        public DateTime Created
        {
            get
            {
                return _Created;
            }
            set
            {
                SetPropertyValue("Created", ref _Created, value);
            }
        }
        private string _AlipayAccount;
        public string AlipayAccount
        {
            get
            {
                return _AlipayAccount;
            }
            set
            {
                SetPropertyValue("AlipayAccount", ref _AlipayAccount, value);
            }
        }
        private string _ContactPerson;
        public string ContactPerson
        {
            get
            {
                return _ContactPerson;
            }
            set
            {
                SetPropertyValue("ContactPerson", ref _ContactPerson, value);
            }
        }
        private string _DistributorName;
        public string DistributorName
        {
            get
            {
                return _DistributorName;
            }
            set
            {
                SetPropertyValue("DistributorName", ref _DistributorName, value);
            }
        }
        private string _Email;
        public string Email
        {
            get
            {
                return _Email;
            }
            set
            {
                SetPropertyValue("Email", ref _Email, value);
            }
        }
        private string _MobilePhone;
        public string MobilePhone
        {
            get
            {
                return _MobilePhone;
            }
            set
            {
                SetPropertyValue("MobilePhone", ref _MobilePhone, value);
            }
        }
        private string _Phone;
        public string Phone
        {
            get
            {
                return _Phone;
            }
            set
            {
                SetPropertyValue("Phone", ref _Phone, value);
            }
        }
        private string _ShopWebLink;
        public string ShopWebLink
        {
            get
            {
                return _ShopWebLink;
            }
            set
            {
                SetPropertyValue("ShopWebLink", ref _ShopWebLink, value);
            }
        }
        //end
    }
}
